using System;

namespace WIT.DAQ.Core.Models;

/// <summary>
/// 任务触发条件
/// </summary>
internal class TaskCondition
{
	/// <summary>
	/// Id
	/// </summary>
	internal Guid Id { get; set; }

	/// <summary>
	/// 站点Id
	/// </summary>
	internal Guid StationId { get; set; }

	/// <summary>
	/// 采集项Id
	/// </summary>
	internal Guid DAQItemId { get; set; }

	/// <summary>
	/// 采集项
	/// </summary>
	internal DAQItem DAQItem { get; set; }

	/// <summary>
	/// 采集项名称
	/// </summary>
	public string DAQItemName => DAQItem.Name;

	/// <summary>
	/// 运算符
	/// </summary>
	public string Operator { get; set; }

	/// <summary>
	/// 值
	/// </summary>
	public object Value { get; set; }
}
